import request from '@/utils/request'

// 查询边坡支护结构巡检列表
export function listFencent(query) {
  return request({
    url: '/slope/fencent/list',
    method: 'get',
    params: query
  })
}

// 查询边坡支护结构巡检详细
export function getFencent(id) {
  return request({
    url: '/slope/fencent/' + id,
    method: 'get'
  })
}

// 新增边坡支护结构巡检
export function addFencent(data) {
  return request({
    url: '/slope/fencent',
    method: 'post',
    data: data
  })
}

// 修改边坡支护结构巡检
export function updateFencent(data) {
  return request({
    url: '/slope/fencent',
    method: 'put',
    data: data
  })
}

// 删除边坡支护结构巡检
export function delFencent(id) {
  return request({
    url: '/slope/fencent/' + id,
    method: 'delete'
  })
}
